package com.shangdiao.sd_server.service;

import java.util.List;

import com.shangdiao.sd_server.generator.pojo.SdCompany;
import com.shangdiao.sd_server.generator.pojo.SdCompanyBase;
import com.shangdiao.sd_server.generator.pojo.SdCompanyBaseExample;
import com.shangdiao.sd_server.generator.pojo.SdCompanyExample;
import com.shangdiao.sd_server.generator.pojo.SdCompanyPhoto;
import com.shangdiao.sd_server.generator.pojo.SdCompanyPhotoExample;
import com.shangdiao.sd_server.generator.pojo.SdFeedback;


public interface CompanyService {

	int countCompanyBaseByExample(SdCompanyBaseExample example);
	
	int countCompanyByExample(SdCompanyExample example);
	
	int insertCompanyBase(SdCompanyBase companyBase);
	
	int insertCompany(SdCompany company);

	List<SdCompanyBase> selectCompanyBaseByExample(SdCompanyBaseExample example);
	
	List<SdCompany> selectCompanyByExample(SdCompanyExample example);
	
	SdCompanyBase selectCompanyBaseById(Integer companyId);
	
	SdCompany selectCompanyById(Integer companyId);
	
	int updateCompanyById(SdCompany company);
	
	int updateCompanyBaseById(SdCompanyBase companyBase);
 
	int insertCompanyPhoto(SdCompanyPhoto companyPhoto);
	
	int updateCompanyPhoto(SdCompanyPhoto companyPhoto, SdCompanyPhotoExample companyPhotoExample);
	
	int updateCompanyPhoto(SdCompanyPhoto companyPhoto);
	
	List<SdCompanyPhoto> selectCompanyPhoto(SdCompanyPhotoExample example);
	
	int insertFeedback(SdFeedback feedback);

	

}
